﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IHISCETeim.DAL;
using IHISCETeim.Model;
using IHISCETeim.Library;
using System.Data;

namespace IHISCETeim.BLL
{
    public class OFactoryRenovationController
    {
        public static int Add(OFactoryRenovationInfo obj)
        {
            return OFactoryRenovationDAL.Add(obj);
        }
        public static bool Delete(int ID)
        {
            return OFactoryRenovationDAL.Delete(ID);
        }
        public static OFactoryRenovationInfo GetList(int ID)
        {
            return  CBO.FillObject<OFactoryRenovationInfo>( OFactoryRenovationDAL.GetList(ID));
        }
        public static DataTableCollection GetPagination(string WhereSql, int PageIndex, int PageSize, string Sort, ref int TotalCount)
        {
            return OFactoryRenovationDAL.GetPagination(WhereSql, PageIndex, PageSize, Sort, ref  TotalCount);
        }
        public static bool Update(OFactoryRenovationInfo obj)
        {
            return OFactoryRenovationDAL.Update(obj);
        }
        public static bool UpdateThreePartyFile(int id, string ThreePartyFile)
        {
            return OFactoryRenovationDAL.UpdateThreePartyFile(id, ThreePartyFile);
        }
    }
}
